<?php
/**
 * Created by JetBrains PhpStorm.
 * User: quangvu
 * Date: 5/25/13
 * Time: 10:25 AM
 * To change this template use File | Settings | File Templates.
 */

class BaseLoader {
    public function bean($name) {
        $file = PATH_BEANS . $name . '.php';
        if(is_readable($file)) {
            require_once($file);
            return new $name;
        }
        return false;
    }
}